home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / gdb-4.12 / libibert / waitpid.c < prev    next >
Encoding:
Text File  |  1994-02-03  |  178 b   |  12 lines

  1. int
  2. waitpid (pid, stat_loc, options)
  3.     int pid, *stat_loc, options;
  4. {
  5.   for (;;)
  6.     {
  7.       int wpid = wait(stat_loc);
  8.       if (wpid == pid || wpid == -1)
  9.     return wpid;
  10.     }
  11. }
  12.